package com.shiguiwu.springmybatis.data.ldap;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.DnAttribute;
import org.springframework.ldap.odm.annotations.Entry;
import org.springframework.ldap.odm.annotations.Id;

import javax.naming.Name;
import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @author: stone
 * @date: Created by 2022/7/16 17:02
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.ldap
 */
@Data
@Entry(base = "dc=shiguiwu,dc=com",objectClasses = {"inetOrgPerson"})
public class Person  implements Serializable {

    private static final long serialVersionUID = -337113594734127702L;

    @Id
    private Name id;
    /**
     * 组件
     */
    @DnAttribute(value = "uid")
    private String uid;

    @Attribute(name = "sn")
    private String firstName;

    /**
     * 名称
     */
    @Attribute(name = "cn")
    private String personName;


    /**
     * 性别
     */
    @Attribute(name = "sex")
    private Integer sex;
    /**
     * 电话
     */
    @Attribute(name = "mobile")
    private String mobile;
    /**
     * 邮箱
     */
    @Attribute(name = "mail")
    private String email;
    /**
     * 工号
     */
    @Attribute(name = "jobNo")
    private String jobNo;



    @Attribute(name = "title")
    private String title;



    private String userPassword;

    @Attribute
    protected Date createTime;

    /**
     * 更新时间
     */
    @Attribute
    protected Date updateTime;








}
